#ifndef __UIDIALPANELWND__H__
#define __UIDIALPANELWND__H__

#include <MZFCLIB.h>

#include	"iUiButton.h"
#include	"UiStatusBar.h"

typedef enum _tagDialPanelWndBtnDisplay
{
	DIAL_PANEL_WND_ONE = 0,
	DIAL_PANEL_WND_TWO,
	DIAL_PANEL_WND_THREE,
	DIAL_PANEL_WND_FOUR,
	DIAL_PANEL_WND_BACKSPACE,
	DIAL_PANEL_WND_FIVE,
	DIAL_PANEL_WND_SIX,
	DIAL_PANEL_WND_SEVEN,
	DIAL_PANEL_WND_EIGHT,
	DIAL_PANEL_WND_PLUS,
	DIAL_PANEL_WND_POUND,
	DIAL_PANEL_WND_NINE,
	DIAL_PANEL_WND_ZERO,
	DIAL_PANEL_WND_ASTERISK,
	DIAL_PANEL_WND_CLEAN,
	MAX_DIAL_PANEL_WND_BTN,
} DIAL_PANEL_WND_BTN;

class UiDialPanelWnd :
	public UiWin
{
public:
	UiDialPanelWnd();
	~UiDialPanelWnd();

	BOOL InitUiWin(void);

	void PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate);
	virtual int OnLButtonDown(UINT fwKeys, int xPos, int yPos);
	virtual int OnLButtonUp(UINT fwKeys, int xPos, int yPos);
	virtual void DeleteImages();

	void LoadiInterItem();
	BOOL InitImages();
	void CtrlPhoneNumEdit(UINT nCtrl);
public:
	iUiButton m_BtnDialPanelWnd[MAX_DIAL_PANEL_WND_BTN];
	UiStatic	m_StaticPhoneNum;
	CMzString	m_strPhoneNum;
	ImagingHelper	*m_DialPanelWndBG;

	HDC				m_hBakDC;
	HBITMAP			m_hBitmapBakDC;

	TCHAR m_charMap[MAX_DIAL_PANEL_WND_BTN];

};

#endif